package kinectData.models;

public class Match {

	
	private Skeleton skeleton;
	private Device device;
	private long time;
	private double matchingValue;
	
	public Match(Skeleton skeleton, Device device, double matchingValue) {
		super();
		this.skeleton = skeleton;
		this.device = device;
		this.matchingValue = matchingValue;
		this.time = device.getTrackingTime();
	}
	
	public Skeleton getSkeleton() {
		return skeleton;
	}
	
	public Device getDevice() {
		return device;
	}

	public double getMatchingValue() {
		return matchingValue;
	}
	
	public String toString() {
		return String.format("[%d] Matched <%d, %s> with closeness %f",
				time, skeleton.getTrackingID(), device.getId(), matchingValue);
	}
}
